//
//  AfanNetWorkTool.swift
//  weiboOfAfan
//
//  Created by afan on 16/3/22.
//  Copyright © 2016年 阿范. All rights reserved.
//

import UIKit
import AFNetworking

class AfanNetWorkTool: NSObject {
    ///简单的 swift 单例
    static let sharedInstance : AfanNetWorkTool = AfanNetWorkTool()
    
    let afnManager : AFHTTPSessionManager = AFHTTPSessionManager(baseURL: AfanBaseURL)
    
    private override init() {
        super.init()
        
        // 添加afn支持 text/plain类型
        afnManager.responseSerializer.acceptableContentTypes?.insert("text/plain")
    }
    
    
}
